package com.situ.mall.controller.back;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.situ.mall.common.ServerResponse;
import com.situ.mall.service.IOrderItemService;

@Controller
@RequestMapping("/orderItem")
public class OrderItemController {
	
	@Autowired
	private IOrderItemService orderItemService; 

	//跳转到orderitem展示界面
	@RequestMapping("/orderList")
	public String orderList() {
		
		return "/orderitem/order_item";
	}
	//传值，分页展示
	@RequestMapping("/pageList")
	@ResponseBody
	public ServerResponse pageList(Integer page,Integer limit) {
		ServerResponse serverResponse = orderItemService.pageList(page, limit);
		
		return serverResponse;
	}
}
